import request from '@/utils/request';

//获取题库列表
export function getTopicLibraryList(params) {
	return request({
		method: 'get',
		url: '/testQuestionBank/query',
		params
	});
}

//新增题库
export function addedTopicLibrary(data) {
	return request({
		method: 'post',
		url: '/testQuestionBank/add',
		data
	});
}

//修改题库
export function updateTopicLibrary(data) {
	return request({
		method: 'post',
		url: '/testQuestionBank/update',
		data
	});
}

//删除题库	
export function deleteTopicLibrary(id) {
	return request({
		method: 'get',
		url: '/testQuestionBank/delete/' + id
	});
}

//获取题库详情
export function queryTopicLibrary(id) {
	return request({
		method: 'get',
		url: '/testQuestionBank/query/' + id
	});
}